package net.huashitong.ssydt.provider.money.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.huashitong.ssydt.PaginationResult;
import net.huashitong.ssydt.money.entity.SsMoneyVipRecord;
import net.huashitong.ssydt.money.entity.vo.SsMoneyVipRecordQueryInVO;
import net.huashitong.ssydt.provider.money.service.SsMoneyVipRecordService;
import net.huashitong.ssydt.provider.web.model.Result;
import net.huashitong.ssydt.provider.web.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hemj
 * @version 2017/8/21
 */
@Api(value = "/money/vip/record", tags = {"vip套餐购买记录管理（后台）"})
@RestController
@RequestMapping("/money/vip/record")
public class SsMoneyVipRecordController {
	@Autowired
	private SsMoneyVipRecordService ssMoneyVipRecordService;

	@ApiOperation(value = "vip套餐购买记录列表", notes = "vip套餐购买记录列表")
	@GetMapping
	public Result<PaginationResult<SsMoneyVipRecord>> paginationQuery(@ModelAttribute SsMoneyVipRecordQueryInVO ssMoneyVipRecordQueryInVO) {
		return ResultUtils.getSuccessResults(ssMoneyVipRecordService.paginationQuery(ssMoneyVipRecordQueryInVO));
	}

}
